package crivia.eca.carry;

import java.util.List;

import crivia.c.a.KeyLink;
import crivia.c.carry.ValueField;
import crivia.c.exception.CarryIOFail;
import crivia.ecp.a.ECC;

public class EL4ECA extends ECC {
	
	
	static {

		if (! createTable(EL4ECA.class, true)){
			throw new CarryIOFail("Data Base Table Create Fail.");
		}
		
	}
	


	private java.lang.String id;
	public java.lang.String getId(){
		return id;
	}
	public crivia.eca.carry.EL4ECA setId(java.lang.String id){
		this.id = id;
		return this;
	}

	private java.lang.String executeTime;
	public java.lang.String getExecuteTime(){
		return executeTime;
	}
	public crivia.eca.carry.EL4ECA setExecuteTime(java.lang.String executeTime){
		this.executeTime = executeTime;
		return this;
	}

	private java.lang.String executeDay;
	public java.lang.String getExecuteDay(){
		return executeDay;
	}
	public crivia.eca.carry.EL4ECA setExecuteDay(java.lang.String executeDay){
		this.executeDay = executeDay;
		return this;
	}

	private java.lang.String ecaClass;
	public java.lang.String getEcaClass(){
		return ecaClass;
	}
	public crivia.eca.carry.EL4ECA setEcaClass(java.lang.String ecaClass){
		this.ecaClass = ecaClass;
		return this;
	}

	private java.lang.String instanceKey;
	public java.lang.String getInstanceKey(){
		return instanceKey;
	}
	public crivia.eca.carry.EL4ECA setInstanceKey(java.lang.String instanceKey){
		this.instanceKey = instanceKey;
		return this;
	}

	private java.lang.String workflowID;
	public java.lang.String getWorkflowID(){
		return workflowID;
	}
	public crivia.eca.carry.EL4ECA setWorkflowID(java.lang.String workflowID){
		this.workflowID = workflowID;
		return this;
	}

	private java.lang.String requestID;
	public java.lang.String getRequestID(){
		return requestID;
	}
	public crivia.eca.carry.EL4ECA setRequestID(java.lang.String requestID){
		this.requestID = requestID;
		return this;
	}

	private java.lang.String nodeLastID;
	public java.lang.String getNodeLastID(){
		return nodeLastID;
	}
	public crivia.eca.carry.EL4ECA setNodeLastID(java.lang.String nodeLastID){
		this.nodeLastID = nodeLastID;
		return this;
	}

	private java.lang.String nodeThisID;
	public java.lang.String getNodeThisID(){
		return nodeThisID;
	}
	public crivia.eca.carry.EL4ECA setNodeThisID(java.lang.String nodeThisID){
		this.nodeThisID = nodeThisID;
		return this;
	}

	private java.lang.String nodeNextID;
	public java.lang.String getNodeNextID(){
		return nodeNextID;
	}
	public crivia.eca.carry.EL4ECA setNodeNextID(java.lang.String nodeNextID){
		this.nodeNextID = nodeNextID;
		return this;
	}

	private java.lang.String executeResult;
	public java.lang.String getExecuteResult(){
		return executeResult;
	}
	public crivia.eca.carry.EL4ECA setExecuteResult(java.lang.String executeResult){
		this.executeResult = executeResult;
		return this;
	}

	private java.lang.String message;
	public java.lang.String getMessage(){
		return message;
	}
	public crivia.eca.carry.EL4ECA setMessage(java.lang.String message){
		this.message = message;
		return this;
	}

	
	
	
	
	@Override
	public void keyLinks(List<KeyLink> keyLinks) {
		keyLinks.add(ValueField.c2d("executeTime"));
		keyLinks.add(ValueField.c2d("executeDay"));
		keyLinks.add(ValueField.c2d("ecaClass"));
		keyLinks.add(ValueField.c2d("instanceKey"));
		keyLinks.add(ValueField.c2d("workflowID"));
		keyLinks.add(ValueField.c2d("requestID"));
		keyLinks.add(ValueField.c2d("nodeLastID"));
		keyLinks.add(ValueField.c2d("nodeThisID"));
		keyLinks.add(ValueField.c2d("nodeNextID"));
		keyLinks.add(ValueField.c2d("executeResult"));
		keyLinks.add(ValueField.c2d("message").setPlaces(4000));
	}

	@Override
	public ValueField primaryKey() {
		return ValueField.c2d("id");
	}

	@Override
	public String tableName() {
		return "Crivia_ECA_EL";
	}

	public static void main(String[] args) {
		System.out.println(createTableSQLServer(EL4ECA.class));
	}
	
}
